<template>
  <div class="container">
    <div v-for="(item, index) in list" :key="index">
      <img v-if="index === 0" src="./imgs/r-7.png" alt="" />
      <img v-if="index === 1" src="./imgs/r-8.png" alt="" />
      <img v-if="index === 2" src="./imgs/r-9.png" alt="" />
      <img v-if="index === 3" src="./imgs/r-10.png" alt="" />
      <img v-if="index === 4" src="./imgs/r-11.png" alt="" />
      <img v-if="index === 5" src="./imgs/r-12.png" alt="" />
      <div>
        <div class="val">
          <span>{{ item.val }}</span> {{ item.unit }}
        </div>
        <div class="text">
          {{ item.text }}
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        { text: '政府数字预案', val: 528, unit: '个' },
        { text: '政府数字预案', val: 528, unit: '个' },
        { text: '政府数字预案', val: 528, unit: '个' },
        { text: '政府数字预案', val: 528, unit: '个' },
        { text: '政府数字预案', val: 528, unit: '个' },
        { text: '政府数字预案', val: 528, unit: '个' }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.container {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1f;
  place-items: center;
  font-family: MicrosoftYaHeiUI;
  font-size: 16px;
  color: #ffffff;
  img {
    width: 122px;
    height: 62px;
    object-fit: contain;
  }
  & > div {
    display: flex;
    align-items: center;
    & > div:nth-child(2) {
      margin-left: -18px;
    }
    .val {
      font-size: 14px;
      margin-bottom: 10px;
      span {
        font-family: YouSheBiaoTiHei;
        font-size: 24px;
        color: #ffde00;
      }
    }
  }
}
</style>
